//***********************************************************************
//  pp81.java  Author:20172330
//
//***********************************************************************

import java.util.Scanner;

public class pp81
{
   public static void main(String []args)
   {
 //------------------------------------------------------   
 // 构造一个数组
 //------------------------------------------------------
     Scanner scan = new Scanner(System.in);
     final int NUMBER = 51, MULTIPLE = 1;

     int[] numbers = new int[NUMBER];
     
     int value;    
     System.out.print("Enter an number : ");
     value = scan.nextInt();
     numbers[value] += 1;

     while (value < 51 && value >= 0) 
     {
        System.out.print("Enter an number : ");
        value = scan.nextInt();
        if (value > 50 || value < 0)//:超出范围结束
            break;
        numbers[value] += 1;
     }

     for (int a = 0; a <=50; a++)
        System.out.println(a + ": " + numbers[a]);

   }
}
